#pragma once
#include "Hash.h"

template<class K>
class unordered_set
{
	struct GetValueOfK
	{
		const K& operator()(const K& key)
		{
			return key;
		}
	};
	 
public:
	typedef typename Hash<K, K, GetValueOfK>::Iterator iterator;
	typedef typename Hash<K, K, GetValueOfK>::Const_Iterator const_iterator;

	iterator begin()
	{
		return _h.Begin();
	}	

	const_iterator begin() const
	{
		return _h.Begin();
	}

	iterator end()
	{
		return _h.End();
	}

	const_iterator end() const 
	{
		return _h.End();
	}

	pair<iterator,bool> insert(const K& key)
	{
		return _h.Insert(key);
	}

	iterator find(const K& key)
	{
		return _h.Find(key);
	}

private:
	Hash<K, K, GetValueOfK> _h;
};